package com.zzyl.nursing.service;

import java.util.List;

import com.zzyl.common.core.domain.AjaxResult;
import com.zzyl.nursing.domain.FamilyMember;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.nursing.dto.BindElderDto;
import com.zzyl.nursing.dto.UserLoginRequestDto;
import com.zzyl.nursing.vo.FamilyListVo;
import com.zzyl.nursing.vo.FamilyVo;
import com.zzyl.nursing.domain.NursingProject;
import com.zzyl.nursing.dto.*;
import com.zzyl.nursing.vo.LoginVo;
import com.zzyl.nursing.vo.ReservationCountVo;
import com.zzyl.nursing.vo.ReservationPageVo;

/**
 * 老人家属Service接口
 * 
 * @author ruoyi
 * @date 2025-08-26
 */
public interface IFamilyMemberService extends IService<FamilyMember>
{
    /**
     * 查询老人家属
     * 
     * @param id 老人家属主键
     * @return 老人家属
     */
    public FamilyMember selectFamilyMemberById(Long id);

    /**
     * 查询老人家属列表
     * 
     * @param familyMember 老人家属
     * @return 老人家属集合
     */
    public List<FamilyMember> selectFamilyMemberList(FamilyMember familyMember);

    /**
     * 新增老人家属
     * 
     * @param familyMember 老人家属
     * @return 结果
     */
    public int insertFamilyMember(FamilyMember familyMember);

    /**
     * 修改老人家属
     * 
     * @param familyMember 老人家属
     * @return 结果
     */
    public int updateFamilyMember(FamilyMember familyMember);

    /**
     * 批量删除老人家属
     * 
     * @param ids 需要删除的老人家属主键集合
     * @return 结果
     */
    public int deleteFamilyMemberByIds(Long[] ids);

    /**
     * 删除老人家属信息
     * 
     * @param id 老人家属主键
     * @return 结果
     */
    public int deleteFamilyMemberById(Long id);

    /**
     * 登录
     * @param userLoginRequestDto
     * @return
     */
    LoginVo login(UserLoginRequestDto userLoginRequestDto);

    AjaxResult addfamily(BindElderDto bindElderDto, Long familyMemberId);


    List<FamilyListVo> getMyFamilyList(Long familyMemberId);

    List<FamilyVo> selectFamilyList(Long familyMemberId);

    void deleteFamily(Long id);

    List<NursingProject> selectNursingProjectList(ProjectPageDto projectPageDto);

    NursingProject selectNursingProjectById(Long id);

    int selectCancelledCount();

    List<ReservationCountVo> selectReservationCountByTime(Long  time);

    void insertReservation(ProjectAddDto projectAddDto);

    List<ReservationPageVo> selectreservationList(ReservationPageDto reservationPageDto);

    void cancelReservation(Long id);
}
